home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Oct 89 / Z0207-A bug with Suitcase-Oct89 < prev   
Encoding:
Text File  |  1989-10-31  |  1.5 KB  |  46 lines  |  [TEXT/GEOL]

  1. Item    4662316                         31-Oct-89        18:46
  2.  
  3. From:   NORVELL.J                       Norvell, Joel
  4.  
  5. To:     MACAPP.TECH$                    MACAPP Tech
  6.  
  7. cc:     D0377                           Software Supply, Steve Brecher,PRT
  8.         DISHON.D                        Dishon, Danny
  9.         MACDTS                          Macintosh Developer Tech. Supt.
  10.         SHAYER1                         Shayer, David
  11.  
  12. Sub:    A bug with Suitcase.
  13.  
  14. I have a MacApp 2.0ß9 application that builds a font popup in a dialog. When
  15. Suitecase II 1.2.5 is installed I get a message:
  16.  
  17. "Could not complete the '…' command because the required resources were not
  18. found." This is an "error: -192" (FailResError).
  19.  
  20. The following block of code in TPopup.IRes is being executed and is failing at
  21. FailResError:
  22.  
  23. IF rsrcID <> kNoResource THEN
  24.    BEGIN
  25.    CatchFailures(fi, HandleFailure);
  26.    aMenu := GetMenu(rsrcID);
  27.    { Don't die because resource not found - just return NIL handle }
  28.    FailResError;
  29.    IF aMenu <> NIL THEN
  30.    HNoPurge(Handle(aMenu));
  31.    SetPopup(aMenu, rsrcID, fCurrentItem, False);
  32.    Success(fi);
  33.    END
  34. ELSE…
  35.  
  36. Everything works fine without Suitcase or (strangely !) if I set certain
  37. breakpoints (with suitcase installed) as I approach the "failure point".
  38.  
  39. This failure occurs with both .Debug and .Non-Debug versions of my application.
  40. And the same cmnu's that the Popups use are used in the menu bar at all times.
  41.  
  42. Can anyone tell me how to avoid this failure ?
  43.  
  44. Hopefully yours - Joel Norvell
  45.  
  46.